<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <meta charset="UTF-8">
    <title>springMybatis</title>
    <%--<link rel="stylesheet" type="text/css" href="<%=basePath%>jsp/common/jquery-easyui-1.5.4.4/demo/demo.css">--%>
    <script type="text/javascript" src="<%=basePath%>/resources/js/jquery-1.9.1.js"></script>
</head>
<body>
<button onclick="testSpringJdbc();">测试springjdbc</button>
<button onclick="testMybatis();">测试Mybatis</button>
</body>
</html>
<script>
    var basePath='<%=basePath%>';
    $(function () {
//        alert(3333)
    });
    function testSpringJdbc() {
        alert(2)
    }
    function testMybatis() {
        var url=basePath+'/demoControl/test';
        $.post(url,{},function (data) {
            console.log("测试数据:", data);
        },'json');

    }
</script>


